package ast;

import compiler.OutputFormatter;

public class StringExpr extends Expression {

    private String value = "";

    public StringExpr(String v) {
        setValue(v);
    }

    @Override
    public void genC(OutputFormatter of) {
        of.output("\"" + value + "\"");
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
